import request from '@/utils/request'

export function getPage(query) {
  return request({
    url: '/assess/page/',
    method: 'get',
    params: query
  })
}
export function addApprovalProcess(data) {
  return request({
    url: '/assess/add/',
    method: 'post',
    data
  })
}
export function addChecker(data) {
  return request({
    url: '/assess/add/checker',
    method: 'put',
    data
  })
}
export function addCheckerStation(data) {
  return request({
    url: '/assess/add/station',
    method: 'put',
    data
  })
}
export function getCheckerList() {
  return request({
    url: '/assess/getCheckerList',
    method: 'get'

  })
}
export function getStationList() {
  return request({
    url: '/assess/getStationList',
    method: 'get'

  })
}
export function getSysfunction(query) {
  return request({
    url: '/sysfunction/check',
    method: 'get',
    params: query
  })
}
export function addSysfunction(data) {
  return request({
    url: '/sysfunction/check',
    method: 'post',
    data
  })
}
export function getCheckUserPerson(id) {
  return request({
    url: `/assess/getCheckUser/${id}`,
    method: 'get'

  })
}
export function delCheckUser(id) {
  return request({
    url: `/assess/delete/${id}`,
    method: 'delete'

  })
}
export function changeorder(data) {
  return request({
    url: `/assess/change`,
    method: 'put',
    data: data
  })
}
export function getwhartCheck(query) {
  return request({
    url: `/sysfunction/check/getCheck/`,
    method: 'get',
    params: query
  })
}
export function del(id) {
  return request({
    url: `/sysfunction/check/${id}`,
    method: 'delete'

  })
}
